home *** CD-ROM | disk | FTP | other *** search
- From: Tendrils@msn.com (kelvin )
- Subject: RE: Placement-new with virtual function problem on HP
- Date: 8 Feb 96 04:19:00 -0800
- References: <4faium$2c6@hermes.oc.com>
- Message-ID: <00001a81+00009ca3@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- Your overridden new may be hiding the global new .... which explain
- why it works when you revert back .... try this (from effective c++
- by Scott Meyers)...
-
-
- In the test class, add this function
-
- void *operator new(size_t size)
- { return ::new char[size];}
-
- later
-